 /*  SAS Data Definition File                        */
 /*  Created by ddltox on Mar 28, 2002  (Thu 02:27 PM PST)  */
 /*  DDL source file: "/u/d7/big/sda_1.2a/tmpdir/AA5dai5q.txt".  */

/* DDL indicates that dataset record length (reclen) is 81 columns. */

TITLE "ORANGE COUNTY ANNUAL SURVEY 1995";
FILENAME INDATA "    ";      /* Put name of data file between quotes */
LIBNAME LIBRARY "    ";    /* Put directory of data library between quotes */

PROC  FORMAT LIB=LIBRARY;
  VALUE Q1f       1='SINGLE FAMILY' 2='ATTACHED' 3='APARTMENT' 4='MOBILE' 
                  5='OTHER' 9='REFUSE' ;
  VALUE Q2f       1='0-2 YRS' 2='3-5 YRS' 3='6-10 YRS' 4='11-20 YRS' 
                  5='21+ YRS' 9='REFUSE' ;
  VALUE Q3f       1='0-2 YRS' 2='3-5 YRS' 3='6-10 YRS' 4='11-20 YRS' 
                  5='21+ YRS' 9='REFUSE' ;
  VALUE Q4f       1='OWN' 2='RENT' 9='DK, REFUSE' ;
  VALUE Q5f       1='UNDER $500' 2='$501-$750' 3='$751-$1,000' 
                  4='$1,001-$1,500' 5='$1,501+' 9='NA, REFUSE' ;
  VALUE Q6f       1='NOTHING' 2='$1-$500' 3='$501-$750' 4='$751-$1,000' 
                  5='$1,001-$1,500' 6='$1,501-$2,000' 7='$2,001+' 
                  9='NA, REFUSE' ;
  VALUE Q7f       1='BETTER OFF' 2='WORSE OFF' 3='SAME' 9='DK, REFUSE' ;
  VALUE Q8f       1='BETTER OFF' 2='WORSE OFF' 3='SAME' 8='DK' 9='REFUSE' ;
  VALUE Q9f       1='GOOD TIMES' 2='BAD TIMES' 8='DK' 9='REFUSE' ;
  VALUE Q10f      1='GOOD TIMES' 2='DEPRESSION' 8='DK' 9='REFUSE' ;
  VALUE Q11f      1='GOOD TIME' 2='BAD TIME' 8='NEITHER, DK' 9='REFUSE' ;
  VALUE Q12f      1='EXCELLENT' 2='GOOD' 3='FAIR' 4='POOR' 8='DK' 9='REFUSE' ;
  VALUE Q13f      1='MUCH BETTER' 2='SOMEWHAT BETTER' 3='SAME' 
                  4='SOMEWHAT WORSE' 5='MUCH WORSE' 8='DK' 9='REFUSE' ;
  VALUE Q14f      1='EXCELLENT' 2='GOOD' 3='FAIR' 4='POOR' 8='DK' 9='REFUSE' ;
  VALUE Q15f      1='VERY WELL' 2='SOMEWHAT WELL' 3='SOMEWHAT BADLY' 
                  4='VERY BADLY' 9='DK, REFUSE' ;
  VALUE Q16f      1='GROWTH' 2='TRAFFIC' 3='HOUSING' 4='CRIME' 5='SCHOOLS' 
                  6='IMMIGRATION' 7='ECONOMY' 8='FINANCIAL CRISIS' 98='OTHER' 
                  99='DK, REFUSE' ;
  VALUE Q17f      1='HEALTH CARE' 2='CHILD CARE' 3='RACE RELATIONS' 
                  4='HOMELESS' 5='DRUG ABUSE' 6='AIDS' 7='OTHER' 
                  9='DK, REFUSE' ;
  VALUE Q18f      1='BETTER PLACE' 2='WORSE PLACE' 3='NO CHANGE' 
                  9='DK, REFUSE' ;
  VALUE Q19f      1='BIG PROBLEM' 2='SOME PROBLEM' 3='SMALL PROBLEM' 
                  4='NO PROBLEM' 8='DK' 9='REFUSE' ;
  VALUE Q20f      1='VERY FEARFUL' 2='SOMEWHAT FEARFUL' 3='NOT TOO FEARFUL' 
                  4='NOT FEARFUL' 8='DK' 9='REFUSE' ;
  VALUE Q21f      1='GREAT DEAL' 2='QUITE A BIT' 3='NOT VERY MUCH' 4='NONE' 
                  8='DK' 9='REFUSE' ;
  VALUE Q22f      1='GREAT DEAL' 2='QUITE A BIT' 3='NOT VERY MUCH' 4='NONE' 
                  8='DK' 9='REFUSE' ;
  VALUE Q23f      1='SATISFACTORY' 2='MORE LANES ONLY' 3='NEW FREEWAYS' 
                  9='DK, REFUSE' ;
  VALUE Q24f      1='YES' 2='NO' 8='DK' 9='REFUSE' ;
  VALUE Q25f      1='VERY SATISFIED' 2='SOMEWHAT SATISFIED' 3='NOT SATISFIED' 
                  8='DK' 9='REFUSE' ;
  VALUE Q26f      1='FULL-TIME' 2='PART-TIME' 3='NOT EMPLOYED' 9='REFUSE' ;
  VALUE Q27f      1='DRIVE ALONE' 2='CARPOOL' 3='VANPOOL' 4='PUBLIC TRANSIT' 
                  5='OTHER' 9='DK, REFUSE' ;
  VALUE Q28f      1='NO PROBLEM' 2='SOME PROBLEM' 3='GREAT PROBLEM' 9='NA' ;
  VALUE Q29f      1='BIG PROBLEM' 2='SOME PROBLEM' 3='SMALL PROBLEM' 
                  4='NO PROBLEM' 8='DK' 9='REFUSE' ;
  VALUE Q30f      1='VERY FEARFUL' 2='SOMEWHAT FEARFUL' 3='NOT TOO FEARFUL' 
                  4='NOT FEARFUL' 8='DK' 9='REFUSE' ;
  VALUE Q31f      1='YES' 2='NO' 8='DK' 9='REFUSE' ;
  VALUE Q32f      1='FAVOR' 2='OPPOSE' 8='DK' 9='REFUSE' ;
  VALUE Q33f      1='FAVOR' 2='OPPOSE' 8='DK' 9='REFUSE' ;
  VALUE Q34f      1='FAVOR' 2='OPPOSE' 8='DK' 9='REFUSE' ;
  VALUE Q35f      1='FAVOR' 2='OPPOSE' 8='DK' 9='REFUSE' ;
  VALUE Q36f      1='FAVOR' 2='OPPOSE' 8='DK' 9='REFUSE' ;
  VALUE Q37f      1='YES' 2='NO' 8='DK' 9='REFUSE' ;
  VALUE Q38f      1='COUNTY' 2='CITY' 3='SAME' 8='DK' 9='REFUSE' ;
  VALUE Q39f      1='FAVOR' 2='OPPOSE' 8='DK' 9='REFUSE' ;
  VALUE Q40f      1='YES, 1' 2='YES, 2+' 3='NO' 8='DK' 9='REFUSE' ;
  VALUE Q41f      1='NOTHING' 2='$1-$100' 3='$101-$250' 4='$251-$500' 
                  5='$501-$999' 6='$1000+' 8='DK' 9='DK, REFUSE' ;
  VALUE Q82f      1='18-34' 2='35-54' 3='55+' 9='REFUSE' ;
  VALUE Q83f      1='< H.S.' 2='H.S. GRAD' 3='SOME COLLEGE' 4='COLLEGE GRAD' 
                  5='POST GRAD' 9='REFUSE' ;
  VALUE Q84f      1='NORTH' 2='WEST' 3='CENTRAL' 4='SOUTH' 5='OUTSIDE OC' 
                  9='NO ANS' ;
  VALUE Q85f      1='UNDER $36,000' 2='$36,000-$50,000' 3='$50,001-$79,999' 
                  4='$80,000+' 9='DK, REFUSE' ;
  VALUE Q86f      1='VERY LIBERAL' 2='SOMEWHAT LIBERAL' 3='MIDDLE OF ROAD' 
                  4='SOMEWHAT CONSERV' 5='VERY CONSERV' 9='REFUSE' ;
  VALUE Q87f      1='DEMOCRAT' 2='REPUBLICAN' 3='INDEP/OTHER' 
                  4='NOT REGISTERED' 9='REFUSE' ;
  VALUE Q88f      1='WILSON' 2='DOLE' 3='GRAMM' 4='DORNAN' 5='BUCHANAN' 
                  6='ALEXANDER' 7='OTHER' 8='DK' 9='NA' ;
  VALUE Q89f      1='CLINTON' 2='WILSON' 3='OTHER' 8='DK' 9='REFUSE' ;
  VALUE Q90f      1='CLINTON' 2='DOLE' 3='OTHER' 8='DK' 9='REFUSE' ;
  VALUE Q91f      1='YES' 2='NO' 8='DK' 9='REFUSE' ;
  VALUE Q92f      0='NEVER' 1='1X' 2='2X' 3='3X' 4='4X+' 8='DK' 9='REFUSE' ;
  VALUE Q93f      1='ASIAN' 2='BLACK' 3='HISPANIC' 4='CAUCASIAN' 5='OTHER' 
                  9='REFUSE' ;
  VALUE Q94f      1='MALE' 2='FEMALE' ;
  VALUE LANG      1='ENGLISH' 2='SPANISH' ;
  VALUE YEAR      1995='YEAR OF SURVEY' ;
RUN;

DATA IN (LABEL="ORANGE COUNTY ANNUAL SURVEY 1995");
  INFILE INDATA LRECL=81;
  INPUT
    #1  CASEID 1-4              Q1 5                    Q2 6                    
        Q3 7                    Q4 8                    Q5 9                    
        Q6 10                   Q7 11                   Q8 12                   
        Q9 13                   Q10 14                  Q11 15                  
        Q12 16                  Q13 17                  Q14 18                  
        Q15 19                  Q16 20-21               Q17 22                  
        Q18 23                  Q19 24                  Q20 25                  
        Q21 26                  Q22 27                  Q23 28                  
        Q24 29                  Q25 30                  Q26 31                  
        Q27 32                  Q28 33                  Q29 34                  
        Q30 35                  Q31 36                  Q32 37                  
        Q33 38                  Q34 39                  Q35 40                  
        Q36 41                  Q37 42                  Q38 43                  
        Q39 44                  Q40 45                  Q41 46                  
        Q82 47                  Q83 48                  Q84 49-50               
        Q85 51                  Q86 52                  Q87 53                  
        Q88 54                  Q89 55                  Q90 56                  
        Q91 57                  Q92 58                  Q93 59                  
        Q94 60                  LANG 61                 WEIGHT 62-69 .2         
        WT 70-77 .2             YEAR 78-81              ;

  LABEL
   CASEID  = 'CASE ID'
   Q1      = 'TYPE OF CURRENT RESIDENCE'
   Q2      = 'HOW LONG LIVE IN OC'
   Q3      = 'HOW LONG LIVE AT CURRENT RESIDENCE'
   Q4      = 'OWN/RENT PRESENT RESIDENCE'
   Q5      = 'MONTHLY RENTAL PAYMENT'
   Q6      = 'MONTHLY MORTGAGE PAYMENT'
   Q7      = 'BETTER OFF/WORSE OFF/SAME LAST YEAR'
   Q8      = 'BETTER OFF/WORSE OFF/SAME NEXT YEAR'
   Q9      = 'NAT''L BUSINESS CONDS NEXT 12 MO'
   Q10     = 'NAT''L CONDS NEXT 5 YEARS'
   Q11     = 'GD/BAD TIME TO BUY MAJ HSEHOLD ITEMS'
   Q12     = 'RATE ECONOMY IN OC TODAY'
   Q13     = 'OC ECONOMY 2 YRS FROM NOW'
   Q14     = 'BUYING OC HOME GOOD INVESTMENT TODAY'
   Q15     = 'QUALITY OF LIFE IN OC'
   Q16     = 'MOST SERIOUS PUBLIC POLICY PROBLEM'
   Q17     = 'MOST SERIOUS SOCIAL PROBLEM'
   Q18     = 'OC IN FUTURE'
   Q19     = 'CRIME A PROBLEM IN OC'
   Q20     = 'FEARFUL THAT WILL BE CRIME VICTIM'
   Q21     = 'CONFIDENCE IN POLICE'
   Q22     = 'CONFIDENCE IN COURTS'
   Q23     = 'FEELING ABOUT FREEWAYS IN OC'
   Q24     = 'NOTICED MEASURE M PRJECTS'
   Q25     = 'SATISFIED W/ USE OF MEASURE M FUNDS'
   Q26     = 'WORK STATUS'
   Q27     = 'HOW COMMUTE TO WORK'
   Q28     = 'TRAFFIC CONGESTION DURING COMMUTE'
   Q29     = 'FUND LOSSES A PROBLEM IN OC'
   Q30     = 'FEARFUL WILL BE AFFECTED BY LOSSES'
   Q31     = 'BEEN AFFECTED BY FUND LOSSES'
   Q32     = 'INCREASE NUMBER OF SUPERVISORS'
   Q33     = 'APPOINT CEO AND HAVE PART TIME BOARD'
   Q34     = 'TERM LIMITS FOR SUPERVISORS'
   Q35     = 'APPOINT TREAS, CLERK AND AUDITOR'
   Q36     = 'AUTHORIZE OC TO ''CONTRACT OUT'''
   Q37     = 'CITY/COUNTY SHARING EFFECTIVE'
   Q38     = 'PREFER CITY OR COUNTY MORE RESP'
   Q39     = 'MERGER OF CITY AND COUNTY GOVT'
   Q40     = 'VOLUNTEERED IN PAST 12 MO'
   Q41     = '$ GAVE TO ALL CHARITIES LAST YR'
   Q82     = 'AGE'
   Q83     = 'EDUCATION'
   Q84     = 'RESIDENCE'
   Q85     = 'ANNUAL HOUSEHOLD INCOME'
   Q86     = 'CONSIDER YOURSELF POLITICALLY'
   Q87     = 'PARTY'
   Q88     = 'VOTE IN GOP PRIMARY'
   Q89     = 'CLINTON VS WILSON'
   Q90     = 'CLINTON VS DOLE'
   Q91     = 'VOTE ON CCRI'
   Q92     = 'VOTED PAST 4 YRS'
   Q93     = 'RACE'
   Q94     = 'SEX'
   LANG    = 'LANGUAGE OF INTERVIEW'
   WEIGHT  = 'WEIGHT'
   WT      = 'WT'
   YEAR    = 'YEAR OF SURVEY'  ;
  FORMAT Q1 Q1f. Q2 Q2f. Q3 Q3f. 
         Q4 Q4f. Q5 Q5f. Q6 Q6f. 
         Q7 Q7f. Q8 Q8f. Q9 Q9f. 
         Q10 Q10f. Q11 Q11f. Q12 Q12f. 
         Q13 Q13f. Q14 Q14f. Q15 Q15f. 
         Q16 Q16f. Q17 Q17f. Q18 Q18f. 
         Q19 Q19f. Q20 Q20f. Q21 Q21f. 
         Q22 Q22f. Q23 Q23f. Q24 Q24f. 
         Q25 Q25f. Q26 Q26f. Q27 Q27f. 
         Q28 Q28f. Q29 Q29f. Q30 Q30f. 
         Q31 Q31f. Q32 Q32f. Q33 Q33f. 
         Q34 Q34f. Q35 Q35f. Q36 Q36f. 
         Q37 Q37f. Q38 Q38f. Q39 Q39f. 
         Q40 Q40f. Q41 Q41f. Q82 Q82f. 
         Q83 Q83f. Q84 Q84f. Q85 Q85f. 
         Q86 Q86f. Q87 Q87f. Q88 Q88f. 
         Q89 Q89f. Q90 Q90f. Q91 Q91f. 
         Q92 Q92f. Q93 Q93f. Q94 Q94f. 
         LANG LANG. YEAR YEAR.  ;

/* md, min and max specifications were translated  */
/* into the following "IF" statements:           */

IF (Q1 = 9) THEN Q1 = .;
IF (Q2 = 9) THEN Q2 = .;
IF (Q3 = 9) THEN Q3 = .;
IF (Q4 = 9) THEN Q4 = .;
IF (Q5 = 9) THEN Q5 = .;
IF (Q6 = 9) THEN Q6 = .;
IF (Q7 = 9) THEN Q7 = .;
IF (Q8 = 9) THEN Q8 = .;
IF (Q9 = 9) THEN Q9 = .;
IF (Q10 = 9) THEN Q10 = .;
IF (Q11 = 9) THEN Q11 = .;
IF (Q12 = 9) THEN Q12 = .;
IF (Q13 = 9) THEN Q13 = .;
IF (Q14 = 9) THEN Q14 = .;
IF (Q15 = 9) THEN Q15 = .;
IF (Q16 = 99) THEN Q16 = .;
IF (Q17 = 9) THEN Q17 = .;
IF (Q18 = 9) THEN Q18 = .;
IF (Q19 = 9) THEN Q19 = .;
IF (Q20 = 9) THEN Q20 = .;
IF (Q21 = 9) THEN Q21 = .;
IF (Q22 = 9) THEN Q22 = .;
IF (Q23 = 9) THEN Q23 = .;
IF (Q24 = 9) THEN Q24 = .;
IF (Q25 = 9) THEN Q25 = .;
IF (Q26 = 9) THEN Q26 = .;
IF (Q27 = 9) THEN Q27 = .;
IF (Q28 = 9) THEN Q28 = .;
IF (Q29 = 9) THEN Q29 = .;
IF (Q30 = 9) THEN Q30 = .;
IF (Q31 = 9) THEN Q31 = .;
IF (Q32 = 9) THEN Q32 = .;
IF (Q33 = 9) THEN Q33 = .;
IF (Q34 = 9) THEN Q34 = .;
IF (Q35 = 9) THEN Q35 = .;
IF (Q36 = 9) THEN Q36 = .;
IF (Q37 = 9) THEN Q37 = .;
IF (Q38 = 9) THEN Q38 = .;
IF (Q39 = 9) THEN Q39 = .;
IF (Q40 = 9) THEN Q40 = .;
IF (Q41 = 9) THEN Q41 = .;
IF (Q82 = 9) THEN Q82 = .;
IF (Q83 = 9) THEN Q83 = .;
IF (Q85 = 9) THEN Q85 = .;
IF (Q86 = 9) THEN Q86 = .;
IF (Q87 = 9) THEN Q87 = .;
IF (Q88 = 9) THEN Q88 = .;
IF (Q89 = 9) THEN Q89 = .;
IF (Q90 = 9) THEN Q90 = .;
IF (Q91 = 9) THEN Q91 = .;
IF (Q92 = 9) THEN Q92 = .;
IF (Q93 = 9) THEN Q93 = .;

PROC DATASETS;
  CONTENTS DATA=IN POSITION;
  TITLE 'CONTENTS OF ALL VARIABLES';
RUN;
